<div class="container-fluid" style="margin: 0px 15px 0px 15px;">
<ol class="breadcrumb">
  <li><a href="<?php echo base_url('/index.php/inicio');?>">Início</a></li>
  <li><a href="<?php echo base_url('index.php/processos/consulta');?>">Processo</a></li>
  <li class="active">Relatório Saída de Processos</li>
</ol>	
			<fieldset>
			<legend>Relatório Saída de Processos</legend>
				<?php 
					$attributes = array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form', 'target'=>'_blank');
					echo form_open('processos/relatoriosaida',$attributes); 
				?>
				<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">Local Saída</label>
				<div class="col-sm-2">
				<?php 
					//$options = array('0'=>'TODOS','1'=>'AUDIENCIA COMUM','2'=>'AUDIENCIA INSTRUCAO','3'=> 'PERICIA COMUM','4'=> 'PEIRICIA');
					$class = 'class="form-control input-sm"';
					echo form_dropdown('local', $local, '',$class);
					
				?>
				</div>
				</div>
				<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">Tipo Processo</label>
				<div class="col-sm-4">
				<?php 
					//echo form_dropdown('tipo_processo',$tipoprocesso,'','class="form-control" id="tipo_processo"');
					$data = array('name'=> 'tipoprocesso','id'=> 'tipoprocesso','value'=> set_value('dia'),'placeholder'=> 'Tipo Processo','class'=> 'form-control input-sm');
					echo form_input($data);
				?>
				</div>
				</div>
				<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">Data</label>
				<div class="col-sm-1">
				<?php 
					$data = array('name'=> 'dia','id'=> 'dia','value'=> set_value('dia'),'placeholder'=> 'Data','class'=> 'form-control input-sm');
					echo form_input($data);
				?>
				</div>
				</div>
				<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
				<?php 
					$data = array('name'=>'salvar','type' => 'submit','class' => 'btn btn-primary','content' =>'Consultar');
					echo form_button($data);
				?>
				<a id="cancelar" href="<?php echo base_url('index.php/processos/consulta');?>" class="btn btn-default"></span>Cancelar</a>
				</div>
				</div>

				<?php echo form_close(); ?>
			</fieldset>

		</div>
		<script src="<?php echo base_url('includes/js/jquery.tokeninput.js')?>"></script>
		<link href="<?php echo base_url('includes/css/token-input-facebook.css') ?>" rel="stylesheet"> 
		<script language="javascript" type="text/javascript">
			$(document).ready(function(){
					$("#form").validate({
						ignore: [],
						rules: {
							dia: "required"
						},
						messages: {
							dia: "Campo requerido"
						}
					});
				$("#dia").datepicker({dateFormat: "dd/mm/yy"});
				
				$("#tipoprocesso").tokenInput("<?php echo base_url('index.php/tipoprocessos/consultaTipoProcessoJson');?>", {
						theme: "facebook",
						//prePopulate:<?php echo $tipoprocessoinfo;?>,
						prePopulate:<?php echo $tipoprocessoinfo;?>,
						searchDelay:"50",
						preventDuplicates: "true",
				});
			});
		</script>
	</body>
</html>